package com.rk.kbk.controller.wxutils;


/**
 * 
 * <dl>
 *  <dd>类/接口描述：配置文件工具
 *	<dd>	
 * <dl>
 * @author 李巍
 * @2014-12-9 下午09:20:07
 *
 */
public class ConfKit {

	/*private static Properties props = new Properties();

	static {
		try {
			props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("wechat.properties"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String get(String key) {
		return props.getProperty(key);
	}

    public static void setProps(Properties p){
        props = p;
    }*/

	private static String AppId="wx4910ad70ad42fac7";
	private static String AppSecret="236444a86a186d929a4278cc066b9536";

	public static String getAppId() {
		return AppId;
	}

	public static void setAppId(String appId) {
		AppId = appId;
	}

	public static String getAppSecret() {
		return AppSecret;
	}

	public static void setAppSecret(String appSecret) {
		AppSecret = appSecret;
	}

	public static String get(String str){
		if(str.equals("AppId")){
			return getAppId();
		}else{
			return getAppSecret();
		}
	}
}
